package com.lizhongbao.cloud.feign.service;

import com.lizhongbao.cloud.feign.client.HelloClient;
import com.lizhongbao.cloud.feign.extension.RequestAspect;
import com.lizhongbao.cloud.feign.extension.RequestContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName TestServiceImpl
 * @Description TODO
 * @Author lizhongbao
 * @Date 2019/12/21 15:58
 * @Version 1.0
 **/
@Service
public class TestServiceImpl {
    private static Logger logger = LoggerFactory.getLogger(TestServiceImpl.class);

    @Autowired
    private HelloClient helloClient;

    public void hello(){
        logger.info("ddddddddddddddddd：" + RequestContext.getXUser());
        logger.info(helloClient.hello());
    }
}
